- 
		Home
	
 
	- 
ShopLentor – WooCommerce Builder for Elementor & Gutenberg +21 Modules – All in One Solution (formerly WooLentor)
 
- 
3.2.2
 
- 
Code
 
- 
Classes
 
-  Cart_Manager 
 
	
	
		
			
				
					
													
								
																			
											| Total Complexity | 
											66 | 
										
																			
											| Dependencies | 
											3 | 
										
																			
											| Dependents | 
											6 | 
										
																	
							 
													
								
																			
											| Total lines | 
											422 | 
										
																			
											| Lines of code | 
											247 | 
										
																			
											| Logical lines of code | 
											131 | 
										
																	
							 
													
								
																			
											| Comment lines | 
											107 | 
										
																			
											| Methods | 
											26 | 
										
																			
											| Properties | 
											1 | 
										
																	
							 
											 
				 
									
							 
		 
	 
	Methods 26
	
		
		
			| Method | 
							Rating | 
													
					
						Maintainability
					
				 | 
										
					Complexity
				 | 
										
					Lines of code
				 | 
					
		
		
					
				| handle_order_completed() | 
									A  | 
																	49 | 
													11 | 
													30 | 
							
					
				| track_cart_changes() | 
									S  | 
																	51 | 
													7 | 
													28 | 
							
					
				| prepare_cart_data() | 
									S  | 
																	49 | 
													6 | 
													29 | 
							
					
				| get_cart_contents_info() | 
									S  | 
																	52 | 
													5 | 
													24 | 
							
					
				| handle_empty_cart() | 
									S  | 
																	65 | 
													4 | 
													9 | 
							
					
				| update_session_mapping_after_recovery() | 
									S  | 
																	62 | 
													3 | 
													12 | 
							
					
				| get_recovery_url() | 
									S  | 
																	62 | 
													3 | 
													12 | 
							
					
				| check_abandoned_carts() | 
									S  | 
																	66 | 
													3 | 
													9 | 
							
					
				| validate_recovery_key() | 
									S  | 
																	68 | 
													3 | 
													7 | 
							
					
				| mark_cart_abandoned() | 
									S  | 
																	63 | 
													2 | 
													11 | 
							
					
				| mark_cart_recovered() | 
									S  | 
																	63 | 
													2 | 
													11 | 
							
					
				| is_recovery_in_progress() | 
									S  | 
																	79 | 
													2 | 
													3 | 
							
					
				| get_or_create_session_id() | 
									S  | 
																	70 | 
													2 | 
													7 | 
							
					
				| __construct() | 
									S  | 
																	77 | 
													1 | 
													4 | 
							
					
				| init_hooks() | 
									S  | 
																	64 | 
													1 | 
													9 | 
							
					
				| get_session_id() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| create_new_session_id() | 
									S  | 
																	72 | 
													1 | 
													5 | 
							
					
				| get_existing_cart() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| update_existing_cart() | 
									S  | 
																	79 | 
													1 | 
													3 | 
							
					
				| create_new_cart() | 
									S  | 
																	72 | 
													1 | 
													5 | 
							
					
				| get_cart_by_email() | 
									S  | 
																	79 | 
													1 | 
													3 | 
							
					
				| cleanup_old_carts() | 
									S  | 
																	76 | 
													1 | 
													4 | 
							
					
				| generate_recovery_key() | 
									S  | 
																	69 | 
													1 | 
													7 | 
							
					
				| get_pending_carts() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| clear_session() | 
									S  | 
																	81 | 
													1 | 
													3 | 
							
					
				| get_current_session_id() | 
									S  | 
																	81 | 
													1 | 
													3 |